﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Classes
{
    [DataContract]
    public class ListOfConnections
    {
        int noOfseatsLeft { get; set; }
        IList<Connection> connectionList;


        [DataMember]
        public IList<Connection> ConnectionList
        {
            get { return connectionList; }
            set { connectionList = value; }
        }
      
       
        
        public ListOfConnections()
        {
            connectionList = new List<Connection>();
        }
        
        public IList<Connection> GetConnectionList()
        {
            return ConnectionList;
        }
        
        public void AddConnection(Connection connection)
        {
            ConnectionList.Add(connection);
        }
        
        
    }
}
